package cn.mysdp.biz.facade;

import cn.mysdp.biz.dto.request.*;
import cn.mysdp.biz.dto.response.*;
import java.util.List;

/**
 * InterfaceName: SdpWorkspaceFacade
 * @Description:
 * @Author: SDP
 * @Date: 2021-10-30
 * @Version: 1.0
 * Table: sdp_workspace
 * Comment:
 * workspace
 */
public interface SdpWorkspaceFacade {
    Integer addSdpWorkspace(SdpWorkspaceAddRequest request) throws Exception;

    Integer updateSdpWorkspace(SdpWorkspaceUpdateRequest request) throws Exception;

    Integer deleteSdpWorkspace(SdpWorkspaceDeleteRequest request) throws Exception;

    SdpWorkspaceQueryResponse querySdpWorkspace(SdpWorkspaceQueryRequest request) throws Exception;

    List<SdpWorkspaceQueryResponse> listSdpWorkspace(SdpWorkspaceQueryRequest request) throws Exception;

    Integer countSdpWorkspace(SdpWorkspaceQueryRequest request) throws Exception;

    BaseStatResponse statSdpWorkspace(SdpWorkspaceQueryRequest request) throws Exception;

    List<SdpWorkspaceForGetColumnListResponse> getColumnList(SdpWorkspaceForGetColumnListRequest request) throws Exception;

    Integer countForGetColumnList(SdpWorkspaceForGetColumnListRequest request) throws Exception;
     
    BaseStatResponse statForGetColumnList(SdpWorkspaceForGetColumnListRequest request) throws Exception;

    List<SdpWorkspaceForGetTableListResponse> getTableList(SdpWorkspaceForGetTableListRequest request) throws Exception;

    Integer countForGetTableList(SdpWorkspaceForGetTableListRequest request) throws Exception;
     
    BaseStatResponse statForGetTableList(SdpWorkspaceForGetTableListRequest request) throws Exception;

    List<SdpWorkspaceForGetDbConfigResponse> getDbConfig(SdpWorkspaceForGetDbConfigRequest request) throws Exception;

    Integer countForGetDbConfig(SdpWorkspaceForGetDbConfigRequest request) throws Exception;
     
    BaseStatResponse statForGetDbConfig(SdpWorkspaceForGetDbConfigRequest request) throws Exception;

    Integer clone(BaseNameIdRequest request) throws Exception;

    Integer cloneWorkspace(BaseNameIdRequest request) throws Exception;

    String fixJsonObject(BaseNameRequest request) throws Exception;

    String testConnect(SdpWorkspaceUpdateRequest request) throws Exception;

}
